package com.jiazhong.basic.pack0524.manytoone;

import com.jiazhong.basic.pack0524.manytoone.bean.Emp;
import com.jiazhong.basic.pack0524.manytoone.service.EmpService;
import com.jiazhong.basic.pack0524.manytoone.service.impl.EmpServiceImpl;

public class App {
    private static void a(){
        EmpService service = new EmpServiceImpl();
        Emp emp = service.findById1(7992);
        System.out.println(emp);
    }
    private static void b(){
        EmpService service = new EmpServiceImpl();
        Emp emp = service.findById2(7992);
        System.out.println(emp);
    }

    public static void main(String[] args) {
        b();
    }
}
